﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="login.aspx.cs" Inherits="admin_login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>用户登录</title>
    <link href="scripts/ui/skins/Aqua/css/ligerui-all.css" rel="stylesheet" type="text/css" />
    <link href="images/style.css" rel="stylesheet" type="text/css" />
    <link rel="icon" href="../favicon.ico" type="image/x-icon" />
    <link rel="shortcut icon" href="../favicon.ico" type="image/x-icon" />
    <script type="text/javascript" src="scripts/jquery/jquery-1.3.2.min.js"></script>
    <script type="text/javascript" src="scripts/jquery/jquery.validate.min.js"></script>
    <script type="text/javascript" src="scripts/jquery/messages_cn.js"></script>
    <script type="text/javascript" src="scripts/ui/js/ligerBuild.min.js"></script>
    <script type="text/javascript" src="js/function.js"></script>
    <script type="text/javascript">
        //表单验证
        $(function () {
            //检测IE
            if ($.browser.msie && $.browser.version == "6.0") {
                window.location.href = 'ie6update.html';
            }
            $('#txtUserName').focus();
            $("#form1").validate({
                errorPlacement: function (lable, element) {
                    element.ligerTip({ content: lable.html(), appendIdTo: lable });
                },
                success: function (lable) {
                    lable.ligerHideTip();
                }
            });
        });
    </script>
    <script language="javascript" type="text/javascript">
        function RefreshImage() {
            var el = document.getElementById("Image1");
            el.src = el.src + '?'; //这个特别重要
        }
    </script>
</head>
<body class="loginbody">
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager> 
    <asp:UpdatePanel ID="UpdatePanel1" runat="server"><ContentTemplate>
    <div class="login_div">
        <div class="login_box">
            <div class="login_logo">LOGO</div>
            <div class="login_content">
                <dl>
                    <dt style="font-size: 13px">用户名：</dt>
                    <dd><asp:TextBox ID="txtUserName" runat="server" CssClass="txtInput3 small3" Style="width: 130px;">1111</asp:TextBox></dd>
                </dl>
                <dl>
                    <dt style="font-size: 13px">密&nbsp;&nbsp;&nbsp;码：</dt>
                    <dd><asp:TextBox ID="txtUserPwd" runat="server" CssClass="txtInput3 small3" TextMode="Password" Style="width: 130px;">1111</asp:TextBox></dd>
                </dl>
               <%-- <dl>
                    <dt></dt>
                    <dd>
                        <div class="login_foot">
                            <div class="right">
                                <asp:Button ID="Button1" runat="server" Text="登 录" CssClass="login_btn" OnClick="btnSubmit_Click" /></div>
                        </div>
                    </dd>
                </dl>--%>
                <%-- <dl>
                    <dt>验证问答：</dt>
                    <dd>
                        <asp:TextBox ID="txtCode" runat="server" MaxLength="3" Style="width: 55px;" />
                        <asp:Image ID="Image1" runat="server" ImageUrl="../vcode.ashx" Style="cursor: pointer;
                            margin-left: 6px" onmouseup="RefreshImage()"  title="输入问题答案，点击刷新问题" alt="点击重刷新" />
                    </dd>
                </dl>--%>
            </div>
            <div class="login_foot">
                <div class="right">
                    <asp:Button ID="btnSubmit" runat="server" Text="登  录" CssClass="btngray" onfocus="this.blur()" OnClick="btnSubmit_Click" />
                </div>
                <%-- <span>
                    <asp:CheckBox ID="cbRememberId" runat="server" Text="记住用户名" Checked="True" /></span>--%>
            </div>
            <div class="login_tip" style="margin: 15px; font-size: 13px">
                <asp:Label ID="lblTip" runat="server" Text="请输入用户名及密码" Visible="False" />
            </div>
        </div>
        <div class="login_copyright">
            Copyright © 2012 Yiwu center. All Rights Reserved.&nbsp;&nbsp;&nbsp;版权所有1<br/>建议使用IE8以上版本或Chrome、Firefox浏览器访问本站</div>
    </div>
    </ContentTemplate></asp:UpdatePanel>
    </form>
</body>
</html>
